<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div class="item prompt">
        <img src="./哈根达斯.jpg" alt="">
    </div>
    <div class="item prompt2">
        <img src="./哈根达斯.jpg" alt="">
    </div>
    <style>
        .item {
            width: 414px;
        }

        .item img {
            /* 让img适应父元素，为保持比例，只设宽度 */
            width: 100%;
        }

        .prompt {
            /* 这个很重要！！！！，让促销标志以促销品做绝对定位参照 */
            position: relative;
        }

        .prompt2::before{
            /* 插入左上促销标志 */
            position: absolute;
            content: url(./左上.png);
        }

        .prompt2::after {
            position: absolute;
            left: 363px;
            bottom: 223px;
            content:url(./右下.png)

            /* 在这里插入右下促销标志 */


        }
    </style>
</body>
</html>